<div class="users view">
<h2><?php  __('User');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Group'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($user['Group']['name'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Username'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['username']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['password']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Brith'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['brith']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phone'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['phone']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Class Student'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['ClassStudent']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Temp Pass'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['temp_pass']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Actived'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['actived']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete User', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List News', true), array('controller' => 'news', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New News', true), array('controller' => 'news', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Assigns', true), array('controller' => 'project_assigns', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Assign', true), array('controller' => 'project_assigns', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Notes', true), array('controller' => 'project_notes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Note', true), array('controller' => 'project_notes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Reports', true), array('controller' => 'project_reports', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Report', true), array('controller' => 'project_reports', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Students', true), array('controller' => 'project_students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Student', true), array('controller' => 'project_students', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Projects', true), array('controller' => 'projects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project', true), array('controller' => 'projects', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related News');?></h3>
	<?php if (!empty($user['News'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('New Category Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Content'); ?></th>
		<th><?php __('Image'); ?></th>
		<th><?php __('Type New'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Published'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['News'] as $news):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $news['id'];?></td>
			<td><?php echo $news['new_category_id'];?></td>
			<td><?php echo $news['name'];?></td>
			<td><?php echo $news['description'];?></td>
			<td><?php echo $news['content'];?></td>
			<td><?php echo $news['image'];?></td>
			<td><?php echo $news['type_new'];?></td>
			<td><?php echo $news['user_id'];?></td>
			<td><?php echo $news['published'];?></td>
			<td><?php echo $news['created'];?></td>
			<td><?php echo $news['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'news', 'action' => 'view', $news['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'news', 'action' => 'edit', $news['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'news', 'action' => 'delete', $news['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $news['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New News', true), array('controller' => 'news', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Assigns');?></h3>
	<?php if (!empty($user['ProjectAssign'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Year Id'); ?></th>
		<th><?php __('Project Category Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Number'); ?></th>
		<th><?php __('Assign Type'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['ProjectAssign'] as $projectAssign):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectAssign['id'];?></td>
			<td><?php echo $projectAssign['project_year_id'];?></td>
			<td><?php echo $projectAssign['project_category_id'];?></td>
			<td><?php echo $projectAssign['user_id'];?></td>
			<td><?php echo $projectAssign['number'];?></td>
			<td><?php echo $projectAssign['assign_type'];?></td>
			<td><?php echo $projectAssign['created'];?></td>
			<td><?php echo $projectAssign['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_assigns', 'action' => 'view', $projectAssign['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_assigns', 'action' => 'edit', $projectAssign['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_assigns', 'action' => 'delete', $projectAssign['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectAssign['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Assign', true), array('controller' => 'project_assigns', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Notes');?></h3>
	<?php if (!empty($user['ProjectNote'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Content'); ?></th>
		<th><?php __('Published'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['ProjectNote'] as $projectNote):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectNote['id'];?></td>
			<td><?php echo $projectNote['project_id'];?></td>
			<td><?php echo $projectNote['user_id'];?></td>
			<td><?php echo $projectNote['content'];?></td>
			<td><?php echo $projectNote['published'];?></td>
			<td><?php echo $projectNote['created'];?></td>
			<td><?php echo $projectNote['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_notes', 'action' => 'view', $projectNote['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_notes', 'action' => 'edit', $projectNote['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_notes', 'action' => 'delete', $projectNote['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectNote['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Note', true), array('controller' => 'project_notes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Reports');?></h3>
	<?php if (!empty($user['ProjectReport'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('File Report'); ?></th>
		<th><?php __('Reviews'); ?></th>
		<th><?php __('Teacher Reviews'); ?></th>
		<th><?php __('Project Result'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['ProjectReport'] as $projectReport):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectReport['id'];?></td>
			<td><?php echo $projectReport['project_id'];?></td>
			<td><?php echo $projectReport['user_id'];?></td>
			<td><?php echo $projectReport['description'];?></td>
			<td><?php echo $projectReport['file_report'];?></td>
			<td><?php echo $projectReport['reviews'];?></td>
			<td><?php echo $projectReport['teacher_reviews'];?></td>
			<td><?php echo $projectReport['project_result'];?></td>
			<td><?php echo $projectReport['created'];?></td>
			<td><?php echo $projectReport['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_reports', 'action' => 'view', $projectReport['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_reports', 'action' => 'edit', $projectReport['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_reports', 'action' => 'delete', $projectReport['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectReport['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Report', true), array('controller' => 'project_reports', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Students');?></h3>
	<?php if (!empty($user['ProjectStudent'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Is Leader'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['ProjectStudent'] as $projectStudent):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectStudent['id'];?></td>
			<td><?php echo $projectStudent['project_id'];?></td>
			<td><?php echo $projectStudent['user_id'];?></td>
			<td><?php echo $projectStudent['is_leader'];?></td>
			<td><?php echo $projectStudent['created'];?></td>
			<td><?php echo $projectStudent['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_students', 'action' => 'view', $projectStudent['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_students', 'action' => 'edit', $projectStudent['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_students', 'action' => 'delete', $projectStudent['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectStudent['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Student', true), array('controller' => 'project_students', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Projects');?></h3>
	<?php if (!empty($user['Project'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Year Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Security Code'); ?></th>
		<th><?php __('Published'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Project'] as $project):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $project['id'];?></td>
			<td><?php echo $project['project_year_id'];?></td>
			<td><?php echo $project['user_id'];?></td>
			<td><?php echo $project['name'];?></td>
			<td><?php echo $project['description'];?></td>
			<td><?php echo $project['security_code'];?></td>
			<td><?php echo $project['published'];?></td>
			<td><?php echo $project['created'];?></td>
			<td><?php echo $project['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'projects', 'action' => 'view', $project['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'projects', 'action' => 'edit', $project['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'projects', 'action' => 'delete', $project['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $project['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project', true), array('controller' => 'projects', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
